import 'package:json_annotation/json_annotation.dart';

part 'home_banner_model.g.dart';

@JsonSerializable(includeIfNull: false)
class HomeBannerModel {
  HomeBannerModel(this.id, this.title, this.linkUrl);

  @JsonKey(defaultValue: 0)
  int id;
  @JsonKey(defaultValue: '')
  String title;
  @JsonKey(defaultValue: '')
  String linkUrl;

  factory HomeBannerModel.fromJson(Map<String, dynamic> json) =>
      _$HomeBannerModelFromJson(json);
  Map<String, dynamic> toJson() => _$HomeBannerModelToJson(this);
}
